PostgreSQL 安全管理 数据脱敏 Anonymizer 自动脱敏(Searching for Identifiers)
1 背景知识
可以使用脱敏规则将数据脱敏变得非常容易简单。
但是,创建脱敏规则时,最难的部分是扫描数据库模型,找出哪些应该脱敏,如何制定脱敏规则和脱敏函数。
此扩展提供了一个 detect()
函数,可以根据字典搜索常用脱敏字段名称。目前有两种词典:英语(en_US
)和法语(fr_FR
)。默认使用英语词典。
SELECT anon.detect('en_US');
//屏幕输出:
table_name | column_name | identifiers_category | direct
------------+----------------+----------------------+--------
customer | CreditCard | creditcard | t
vendor | Firstname | firstname | t
customer | firstname | firstname | t
customer | id | account_id | t
是根据 HIPAA classification 定义的分类做的基础和探测规则。